from custom.handlers.basehandler import BaseRequestHandler, BaseWebSocketHandler


class IndexHandler(BaseRequestHandler):
    def get(self, *args, **kwargs):
        self.render('index.html', title='alpha')


class TestWebViewHandler(BaseRequestHandler):
    def get(self, *args, **kwargs):
        self.render('webview.html')


class Test1WebViewHandler(BaseRequestHandler):
    def get(self, *args, **kwargs):
        self.render('web1.html')


class ChatHandler(BaseWebSocketHandler):
    def open(self):
        print('open')
        self.write_message('on open')

    def on_close(self):
        print('close')
